﻿using Newtonsoft.Json;

namespace Models
{
    public class Response
    {
        public bool Success { get; set; }
        public string Message { get; set; }

        public object Data { get; set; }

        public string ToJsonString()
        {
            string json = JsonConvert.SerializeObject(this);
            return json;
        }
    }

    public class Response<T>
    {
        public bool Success { get; set; }
        public string Message { get; set; }

        public T Data { get; set; }

        public string ToJsonString()
        {
            string json = JsonConvert.SerializeObject(this);
            return json;
        }
    }
}
